* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

.h-icon-box {
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: linear-gradient(-45deg, #550707, #094632);
}

.h-icon-box a {
  color: #fff;
  margin: 0 30px;
  text-decoration: none;
  display: block;
  position: relative;
}

.h-icon-box a .layer {
  width: 70px;
  height: 70px;
  transition: 0.3s;
}

.h-icon-box a .layer i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color);
  border-radius: 5px;
  transition: 0.3s;
}

.h-icon-box a .layer i.fa {
  color: var(--color);
  font-size: 36px;
  text-align: center;
  line-height: 70px;
}

.h-icon-box a .text {
  position: absolute;
  bottom: 0;
  opacity: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: var(--color);
  text-align: center;
  transition: 0.3s;
}

.h-icon-box a:hover .text{
  bottom: -35px;
  opacity: 1;
}

.h-icon-box a:hover .layer{
  transform: rotate(-30deg) skew(15deg);
}

.h-icon-box a:hover .layer i:nth-child(1) {
  opacity: 0.2;
  transform: translate(0,0);
}
.h-icon-box a:hover .layer i:nth-child(2) {
  opacity: 0.4;
  transform: translate(5px,-5px);
}
.h-icon-box a:hover .layer i:nth-child(3) {
  opacity: 0.6;
  transform: translate(10px,-10px);
}
.h-icon-box a:hover .layer i:nth-child(4) {
  opacity: 0.8;
  transform: translate(15px,-15px);
}
.h-icon-box a:hover .layer i:nth-child(5) {
  opacity: 1.0;
  transform: translate(20px,-20px);
}

.h-icon-box a:hover .layer i{
  box-shadow: -1px 1px 3px var(--color);
}

.h-icon-box a:nth-child(1) .layer i,
.h-icon-box a:nth-child(1) .text {
  --color: #319fc7;
}
.h-icon-box a:nth-child(2) .layer i,
.h-icon-box a:nth-child(2) .text {
  --color: #309c7c;
}
.h-icon-box a:nth-child(3) .layer i,
.h-icon-box a:nth-child(3) .text {
  --color: #cf6051;
}
.h-icon-box a:nth-child(4) .layer i,
.h-icon-box a:nth-child(4) .text {
  --color: #bfca5d;
}
.h-icon-box a:nth-child(5) .layer i,
.h-icon-box a:nth-child(5) .text {
  --color: #5e49b8;
}